package com.aaa.project.zhreport.controller;

import com.aaa.framework.web.domain.AjaxResult;
import com.aaa.project.zhreport.domain.YwfxDataTemplateVariable;
import com.aaa.project.zhreport.service.YwfxDataTemplateVariableService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author baibin
 * @version 1.0
 * @date 2025/4/16 10:25
 * @description YwfxDataTemplateVariableController
 */
@RestController
@RequestMapping("/data/template/variable")
public class YwfxDataTemplateVariableController {

    @Resource
    private YwfxDataTemplateVariableService service;

    /**
     * 查询列表
     *
     * @param query 查询条件
     * @return AjaxResult
     */
    @RequestMapping("/list")
    public AjaxResult list(YwfxDataTemplateVariable query) {
        return AjaxResult.success(service.list(query));
    }
}
